package com.example.shardingjdbc.service;

import com.example.shardingjdbc.entity.User;
import com.example.shardingjdbc.mapper.TestMapper;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description :
 * @Author : Bruce Lee
 * @CreateTime : 2024/5/21
 */

@Service
public class UserService {

    @Autowired
    private TestMapper testMapper;

    @Test
    public void insert(User user) {
        testMapper.insert(user);
    }
}
